package Engine.Manager
{
	import Engine.UIControl.Button;
	import Engine.UIControl.CardIcon;
	import Engine.UIControl.IconBase;
	import Engine.UIControl.TextBase;
	import Engine.UIControl.UIMouse;
	
	import Interface.Common.IControlManager;
	import Interface.UIControl.IButton;
	import Interface.UIControl.ICardIcon;
	import Interface.UIControl.ITextBase;
	
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.text.TextField;
	
	public class ControlManager implements IControlManager
	{
		public function ControlManager()
		{
			
		}
		
		
		public function getButton(_sprite:Sprite):IButton
		{
			return new Button(_sprite) as IButton;
		}
		
		public function getText(textFd:TextField = null):ITextBase
		{
			return new TextBase(textFd);
		}
		
		public function getCard(btData:BitmapData = null,p_w:Number = 49,p_h:Number = 69):ICardIcon
		{
			return new CardIcon(btData,p_w,p_h);	
		}
	}
}